﻿@model BlackBox.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<div id="log-in-form">
    <h3 id="log-in-title">@ViewBag.Title</h3>
    @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <fieldset>
            <legend></legend>
            <ol id="log-in-list">
                <li class="log-in-list-items">
                    @Html.LabelFor(m => m.UserName)
                    @Html.TextBoxFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </li>
                <li class="log-in-list-items">
                    @Html.LabelFor(m => m.Password)
                    @Html.PasswordFor(m => m.Password)
                    @Html.ValidationMessageFor(m => m.Password)
                </li>
                <li class="log-in-list-items">
                    @Html.CheckBoxFor(m => m.RememberMe)
                    @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
                </li>
            </ol>

            <input id="log-in-button" type="submit" value="Log in" />

        </fieldset>
        
        <p id="log-in-footer-text">
            Please enter your username and password. Please @Html.ActionLink("Register", "Register") if you don't have an account.
        </p>
    }
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
